Post

Replies

Boosts

Views

Activity

Reply to iOS17.2 change orientation
The previous code stopped working suddenly after I added iOS 15 simulator. Resetted Sonoma and reinstalled Xcode and couldn't make it work again. But it worked once and I decided to add a proper delay. New code is working every time now: double delayInSeconds = 1.0; // set the delay time dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [self readIssue:issue]; });
Jan ’24
Reply to iOS17.2 change orientation
Just found the solution - to push code for the opening of the selected document on the main thread. Now main view rotates before that document is opened: dispatch_async(dispatch_get_main_queue(), ^{ [NSThread sleepForTimeInterval: 0.5]; [self readIssue:issue]; });
Jan ’24